package com.shigen.file.common;

import java.io.Serializable;
import lombok.Data;
import org.hibernate.validator.constraints.Range;

/**
 * pageRequest封装
 * @author shigenfu
 */
@Data
public class PageRequest implements Serializable {

  /**
   * 起始页码
   */
  @Range(min = 0, message = "起始页码参数错误")
  private long pagenum;

  /**
   * 页面大小
   */
  @Range(min = 0, max = 30, message = "页面大小参数错误")
  private long pagesize;
}
